home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / netconnect3 / cmanager / rexx / senddopusftp.rexx < prev    next >
OS/2 REXX Batch file  |  1998-09-25  |  616b  |  36 lines

  1. /*
  2.  *
  3.  *  $VER: SendDOpusFTP.rexx 1.0 (29.6.98) by Simone Tellini
  4.  *
  5.  */
  6.  
  7. Options Results
  8. Parse Arg lister" "path
  9.  
  10. IF ~SHOW(P,'DOPUS.1') THEN
  11.     Exit
  12.  
  13. 'GETENTRY' ftp
  14.  
  15. if ftp.type ~= 'FTP' then
  16.     ftp.advanced = 0
  17.  
  18. Address 'DOPUS.1'
  19.  
  20. if lister = 1 then
  21.     'Command ScanDir "'path'" NEW'
  22.  
  23. if left(ftp.ftp, 6) == 'ftp://' then do
  24.     parse VAR ftp.ftp 'ftp://' site '/' dir
  25. end
  26. else do
  27.     parse VAR ftp.ftp site '/' dir
  28. end
  29.  
  30. if ftp.anonymous = 1 | ftp.advanced = 0 then
  31.     'Command FTPConnect' site 'DIR "'dir'"'
  32. else
  33.     'Command FTPConnect' site 'USER "'ftp.username'" PASS "'ftp.password'" DIR "'dir'"'
  34.  
  35. Exit 0
  36.